<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
        <title>@ViewBag.Title - Medical Information Management System</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        
        @Styles.Render("~/Content/themes/base/css", "~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
       
    </head>
    <body>
    @(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css")
    .Add("telerik.metro.css")
    .Combined(true).Compress(true)))
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@Html.ActionLink("your logo here.", "Index", "Home")</p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                </div> 
              </div>  
        </header>
        <div id="body">

            @RenderSection("featured", required: false)
            <div> 
    @if (Request.IsAuthenticated)
    {          
<!-- User Menu's Go here  -->
            @Html.Telerik().Menu().Name("UserMenu").Items(items =>
                            {
                                items.Add().Text("Home").Action("Index", "Home");
                                items.Add().Text("Enrollment").Items(enrolment =>
                                {
                                    enrolment.Add().Text("Patient Enrolment").Action("Index", "Patients");
                                    enrolment.Add().Text("Medical Personnel Enrollment").Action("Index", "MedicalPersonnels");
                                    enrolment.Add().Text("HMO Customer Enrolment").Action("Customer", "ServiceProvider");
                                    enrolment.Add().Text("Enrol Medical Facility").Action("Index", "MedicalFacilities");
                                    enrolment.Add().Text("HMO Enrolment").Action("Index", "ServiceProvider");
                                });
                                items.Add().Text("My Profile").Items(profile =>
                                    {
                                        profile.Add().Text("Update Profile").Action("UpdateUserProfile", "UserAccount");
                                        profile.Add().Text("Change Password").Action("ChangePassword", "UserAccount");
                                    });
                                items.Add().Text("Reports").Items(reports =>
                                {
                                    reports.Add().Text("Transaction Reports").Action("UpdateUserProfile", "Reports");
                                    reports.Add().Text("Disease Pattern Reports").Action("Diseases", "Reports");
                                    reports.Add().Text("User Activity Reports").Action("UserActivity", "Reports");
                                    reports.Add().Text("Inventory Reports").Action("Inventory", "Reports");
                                    reports.Add().Text("Cash Flow Reports").Action("CashFlow", "Reports");
                                });
                                items.Add().Text("Manage User Accounts").Items(account =>
                                    {
                                        account.Add().Text("Create User").Action("CreateUser", "Account");
                                        account.Add().Text("List Users").Action("ListUsers", "Account");
                                    });
                                items.Add().Text("Patient Diagnostics").Items(history =>
                                {
                                    history.Add().Text("Medical History").Action("Index", "MedicalHistory");
                                    history.Add().Text("Diagnose Patient").Action("Diagnose", "MedicalHistory");
                                });
                                items.Add().Text("Manage Appointments").Action("Index","Appointments");
                                items.Add().Text("Log Out").Action("LogOff", "Account");
                            });

    }

            </div>
            <section class="content-wrapper main-content clear-fix">
            @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - Medical Information Management System</p>
                </div>
                <div class="float-right">
                    <ul id="social">
                    </ul>
                </div>
            </div>
        </footer>
        @Scripts.Render("~/bundles/jquery")
	@RenderSection("scripts", required: false)
    @(Html.Telerik().ScriptRegistrar().Globalization(true).DefaultGroup(group => group.Combined(true).Compress(true)))</body>
</html>

